﻿# -*- coding:utf-8 -*-
#
# склад
from django.shortcuts import render_to_response
from django.template import RequestContext, Context
from django.contrib.auth.decorators import login_required
from django.contrib.auth.decorators import permission_required
from sklad.models import Category
from sklad.contextprocessors import category_proc



@login_required
@permission_required('sklad.view_part')
def index(request): 
    request.session["current_category"] = None
    context = Context({
    })
    return render_to_response('sklad/index.html', context, context_instance=RequestContext(request, processors=[category_proc]))


    
    
    